09. Mockito

Mockito

Mockito

Let's look at how we can create mocks using Mockito, an open-source testing framework for Java.

In this next video, we'll walk through building some mocks for the eCommerce application. You likely cloned the repository for this earlier in the course, but if you need it you can find it here.

Writing TestUtils

ND035 C04 L02 A12.1 Mockito Example

Writing the UserController class

ND035 C04 L02 A12.2 Mockito Example V2

Mockito Example

Task Description:

Before moving on, make sure that you've done the following in the eCommerce application:

Task List:

Task Feedback:

Again, having done these things now means you'll be in great shape when you get to the final project!